const state = {
  goods_id: -1,
  isEdit: false
}
const mutations = {
  SET_GOODS_ID: (state, id) => {
    state.goods_id = id
  },
  SET_EDIT_TYPE: (state, editType) => {
    state.isEdit = editType
  }
}
const actions = {
  setGoodsId(context, id) {
    context.commit('SET_GOODS_ID', id)
  },
  setEditType(context, editType) {
    context.commit('SET_EDIT_TYPE', editType)
  }
}
export default {
  namespaced: true,
  state,
  mutations,
  actions
}
